﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

using SBPweb.PROvibe.Client.Library.Base;

namespace SBPweb.PROvibe.Client.Library.Controls
{

    public class WindowBase : RIA.Client.Controls.Windows.Window
    {

        #region Constructor logic

        public WindowBase()
            : base()
        {
            ClientContext = new ClientContext(this.GetType());
        }

        public WindowBase(string rootElementName)
            : base(rootElementName)
        {
            ClientContext = new ClientContext(this.GetType());
        }

        public WindowBase(Canvas rootElement)
            : base(rootElement)
        {
            ClientContext = new ClientContext(this.GetType());
        }

        #endregion

        #region Properties

        public ClientContext ClientContext
        {
            get;
            private set;
        }

        #endregion

        #region Methods

        protected override void OnLoaded(object sender, RoutedEventArgs e)
        {
            ChromeBrush = new SolidColorBrush(Color.FromArgb(208, 255, 255, 255));
            base.OnLoaded(sender, e);
        }

        #endregion

    }

}